namespace TS2015.Migrations
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;
    using TS2015.Models;

    internal sealed class Configuration : DbMigrationsConfiguration<TS2015.Models.TS2015Context>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
        }

        protected override void Seed(TS2015.Models.TS2015Context context)
        {
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method 
            //  to avoid creating duplicate seed data. E.g.
            //
            context.TbThongKes.AddOrUpdate(
              p => p,
              new TbThongKe { ID=1,LuongTruyCap=0 }               
            );
            //
        }
    }
}
